package application;

import android.os.AsyncTask;

class MyAsyncTask extends AsyncTask<Void,Void,Void>{
    private Runnable mRunnable;
    public MyAsyncTask(Runnable runnable){
        this.mRunnable = runnable;
    }


    @Override
    protected Void doInBackground(Void... params) {
        if(mRunnable!=null){
            mRunnable.run();
        }
        return null;
    }
}
